<!DOCTYPE html>
<html class="iframe-h">
<head>
<meta charset="UTF-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title>网站后台管理模版</title>
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/layui/css/layui.css"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/admin.css"/>
</head>
<body>

<div class="wrap-container" style="padding:10px;">
<form class="layui-form" action="">
      <div class="layui-form-item">
        <div class="layui-inline">
          <input type="text" name="q" placeholder="请输入UID或用户名" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-inline">
        <button class="layui-btn layui-btn-normal" lay-submit="search">搜索</button>
        </div>
      </div>
    </form>

<div class="layui-form">
      <table class="layui-table" lay-even lay-skin="nob">
        <colgroup>
        <col width="90">
        <col>
        <col>
        </colgroup>
        <thead>
          <tr>
            <th></th>
            <th>代理名称</th>
            <th>代理用户名</th>
          </tr>
        </thead>
        <tbody>
          
          {volist name='_list' id='vo'}
          <tr class="chk_body">
            <td><input type="radio" name="id" lay-skin="primary" value="{$vo.id}" title="&nbsp;" data-id="{$vo.id}"></td>
            <td class="hfbody">{$vo.name}</td>
            <th>{$vo.username}</th>
          </tr>
          {/volist}
          
        </tbody>
      </table>
      <!--tp分页-->
      <div class="page-wrap">
      {$_page}
      </div>
    </div>
</div>
<script src="__STATIC__/js/jquery.min.js" type="text/javascript" charset="utf-8"></script> 
<script src="__STATIC__/admin/layui/layui.js" type="text/javascript" charset="utf-8"></script> 
<script src="__STATIC__/js/common.js" type="text/javascript" charset="utf-8"></script> 
<script>
			layui.use(['form', 'layedit', 'laydate'], function(){
			  var form = layui.form()
			  ,layer = layui.layer;
			});
			
			$('.chk_body').click(function(){
				var id = $(this).find('input').val();
				$("#aid" , parent.document).val(id);
				var index = window.parent.layer.getFrameIndex(window.name);  
				window.parent.layer.close(index);
			});
		</script>
</body>
</html>